package com.study.manage.dal;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.study.manage.domain.OrdersPay;
import com.study.manage.domain.enumm.TradeType;

public interface OrdersPayRepository extends PagingAndSortingRepository<OrdersPay, Long> {

    List<OrdersPay> findByOutTradeNoAndTradeType(String outTradeNo, TradeType type);

    List<OrdersPay> findByOrdersId(Long ordersId);

}
